package com.threeti.mecool.core.infrastructure.persistence.client;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.threeti.mecool.core.domain.model.client.AndroidApk;

public interface AndroidApkRepository extends JpaRepository<AndroidApk, Long> {
  @Query("from AndroidApk where version = (select max(version) from AndroidApk apk)")
  AndroidApk findByLatestVersion();
}
